<%@ page import="your_car_status.Services" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'services.label', default: 'Services')}" />
		<title>Edit Service</title>
	</head>
	<body>
		<a href="#edit-services" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div id="edit-services" class="content scaffold-edit" role="main">
			<h1><g:message code="Edit Service" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<g:hasErrors bean="${servicesInstance}">
			<ul class="errors" role="alert">
				<g:eachError bean="${servicesInstance}" var="error">
				<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
				</g:eachError>
			</ul>
			</g:hasErrors>
			<g:form method="post" >
                          <g:hiddenField name="id" value="${servicesInstance?.id}" />
                          <g:hiddenField name="version" value="${servicesInstance?.version}" />
                          <fieldset class="form">
                            <g:render template="formService"/>
                          </fieldset>
                          <fieldset class="buttons">
                            <g:actionSubmit class="save" action="updateService" value="${message(code: 'Update')}" />
                            <g:actionSubmit class="delete" action="deleteService" value="${message(code: 'Delete')}" formnovalidate="" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
                            <g:link class="save" controller="bill" action="pdf" id="${servicesInstance?.id}">Bill</g:link>
                            <g:link class="save" action="listService" id="${carId}" >${message(code: 'Return')}</g:link>
                          </fieldset>
                        </g:form>
		</div>
	</body>
</html>
